import request from '@/utils/request'

// 查询农机作业列表
export function listA_machinery_operation(query) {
  return request({
    url: '/report/a_machinery_operation/list',
    method: 'get',
    params: query
  })
}

// 查询农机作业详细
export function getA_machinery_operation(id) {
  return request({
    url: '/report/a_machinery_operation/' + id,
    method: 'get'
  })
}

// 新增农机作业
export function addA_machinery_operation(data) {
  return request({
    url: '/report/a_machinery_operation',
    method: 'post',
    data: data
  })
}

// 修改农机作业
export function updateA_machinery_operation(data) {
  return request({
    url: '/report/a_machinery_operation',
    method: 'put',
    data: data
  })
}

// 删除农机作业
export function delA_machinery_operation(id) {
  return request({
    url: '/report/a_machinery_operation/' + id,
    method: 'delete'
  })
}
